' Stephen Toub


Imports Microsoft.VisualBasic
Imports System
Imports System.IO

Namespace C4F.DevKit.PreviewHandler.PreviewHandlerFramework
    Public MustInherit Class FileBasedPreviewHandler
        Inherits PreviewHandler
        Implements IInitializeWithFile
        Private _filePath As String

        Private Sub IInitializeWithFile_Initialize(ByVal pszFilePath As String, ByVal grfMode As UInteger) Implements IInitializeWithFile.Initialize
            _filePath = pszFilePath
        End Sub

        Protected Overrides Sub Load(ByVal c As PreviewHandlerControl)
            c.Load(New FileInfo(_filePath))
        End Sub
    End Class
End Namespace
